package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_user_feedback
 * @author 
 */
public class SesUserFeedback implements Serializable {
    /**
     * ID,主键PK
     */
    private Long userfeedbackid;

    /**
     * 用户表ID
     */
    private Long userUserid;

    /**
     * 用户订单信息表ID
     */
    private Long userUserOrderid;

    /**
     * 反馈图片路径
     */
    private String userfeedbackimage;

    /**
     * 用户反馈:0.其它损坏,1.床位损坏,2.柜门损坏,3.无法归还
     */
    private String userfeedbacktype;

    /**
     * 用户反馈时间
     */
    private String userfeedbackdate;

    /**
     * 床基本信息表ID
     */
    private Long bedtypeid;

    /**
     * 用户反馈内容
     */
    private String userfeedbackcontent;

    private SesUser sesUser;

    private static final long serialVersionUID = 1L;

    public Long getUserfeedbackid() {
        return userfeedbackid;
    }

    public void setUserfeedbackid(Long userfeedbackid) {
        this.userfeedbackid = userfeedbackid;
    }

    public Long getUserUserid() {
        return userUserid;
    }

    public void setUserUserid(Long userUserid) {
        this.userUserid = userUserid;
    }

    public Long getUserUserOrderid() {
        return userUserOrderid;
    }

    public void setUserUserOrderid(Long userUserOrderid) {
        this.userUserOrderid = userUserOrderid;
    }

    public String getUserfeedbackimage() {
        return userfeedbackimage;
    }

    public void setUserfeedbackimage(String userfeedbackimage) {
        this.userfeedbackimage = userfeedbackimage;
    }

    public String getUserfeedbacktype() {
        return userfeedbacktype;
    }

    public void setUserfeedbacktype(String userfeedbacktype) {
        this.userfeedbacktype = userfeedbacktype;
    }

    public String getUserfeedbackdate() {
        return userfeedbackdate;
    }

    public SesUser getSesUser() {
        return sesUser;
    }

    public void setSesUser(SesUser sesUser) {
        this.sesUser = sesUser;
    }

    public void setUserfeedbackdate(String userfeedbackdate) {
        this.userfeedbackdate = userfeedbackdate;
    }

    public Long getBedtypeid() {
        return bedtypeid;
    }

    public void setBedtypeid(Long bedtypeid) {
        this.bedtypeid = bedtypeid;
    }

    public String getUserfeedbackcontent() {
        return userfeedbackcontent;
    }

    public void setUserfeedbackcontent(String userfeedbackcontent) {
        this.userfeedbackcontent = userfeedbackcontent;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserFeedback other = (SesUserFeedback) that;
        return (this.getUserfeedbackid() == null ? other.getUserfeedbackid() == null : this.getUserfeedbackid().equals(other.getUserfeedbackid()))
            && (this.getUserUserid() == null ? other.getUserUserid() == null : this.getUserUserid().equals(other.getUserUserid()))
            && (this.getUserUserOrderid() == null ? other.getUserUserOrderid() == null : this.getUserUserOrderid().equals(other.getUserUserOrderid()))
            && (this.getUserfeedbackimage() == null ? other.getUserfeedbackimage() == null : this.getUserfeedbackimage().equals(other.getUserfeedbackimage()))
            && (this.getUserfeedbacktype() == null ? other.getUserfeedbacktype() == null : this.getUserfeedbacktype().equals(other.getUserfeedbacktype()))
            && (this.getUserfeedbackdate() == null ? other.getUserfeedbackdate() == null : this.getUserfeedbackdate().equals(other.getUserfeedbackdate()))
            && (this.getBedtypeid() == null ? other.getBedtypeid() == null : this.getBedtypeid().equals(other.getBedtypeid()))
                && (this.getSesUser() == null ? other.getSesUser() == null : this.getSesUser().equals(other.getSesUser()))
                && (this.getUserfeedbackcontent() == null ? other.getUserfeedbackcontent() == null : this.getUserfeedbackcontent().equals(other.getUserfeedbackcontent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserfeedbackid() == null) ? 0 : getUserfeedbackid().hashCode());
        result = prime * result + ((getUserUserid() == null) ? 0 : getUserUserid().hashCode());
        result = prime * result + ((getUserUserOrderid() == null) ? 0 : getUserUserOrderid().hashCode());
        result = prime * result + ((getUserfeedbackimage() == null) ? 0 : getUserfeedbackimage().hashCode());
        result = prime * result + ((getUserfeedbacktype() == null) ? 0 : getUserfeedbacktype().hashCode());
        result = prime * result + ((getUserfeedbackdate() == null) ? 0 : getUserfeedbackdate().hashCode());
        result = prime * result + ((getBedtypeid() == null) ? 0 : getBedtypeid().hashCode());
        result = prime * result + ((getSesUser() == null) ? 0 : getSesUser().hashCode());
        result = prime * result + ((getUserfeedbackcontent() == null) ? 0 : getUserfeedbackcontent().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userfeedbackid=").append(userfeedbackid);
        sb.append(", userUserid=").append(userUserid);
        sb.append(", userUserOrderid=").append(userUserOrderid);
        sb.append(", userfeedbackimage=").append(userfeedbackimage);
        sb.append(", userfeedbacktype=").append(userfeedbacktype);
        sb.append(", userfeedbackdate=").append(userfeedbackdate);
        sb.append(", bedtypeid=").append(bedtypeid);
        sb.append(", userfeedbackcontent=").append(userfeedbackcontent);
        sb.append(", sesUser=").append(sesUser);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}